import type { TableColumn } from '@/components/core/dynamic-table';
// import { Avatar, Space, Tag } from 'ant-design-vue';

export type TableListItem = API.AttributeListResultItem;
export type TableColumnItem = TableColumn<TableListItem>;

export const baseColumns: TableColumnItem[] = [
  {
    title: '序号',
    dataIndex: 'id',
    align: 'center',
    hideInSearch: true,
    editable: false,
  },

  // {
  //   title: '属性类型',
  //   align: 'center',
  //   dataIndex: 'attributeType',
  // },
  {
    title: '名称',
    align: 'center',
    dataIndex: 'name',
    editable: true,
    formItemProps: {
      defaultValue: '',
      rules: [{ required: true, message: '请输入属性名称' }],
    },
    editFormItemProps: {
      /** 不继承于 `formItemProps`的属性 */
      extendSearchFormProps: false,
      rules: [{ required: true, message: '请输入属性名称' }],
    },
  },
  {
    title: '备注',
    align: 'center',
    dataIndex: 'remark',
  },
];
